// 原始类型
let hello: string = "hello world nisuhosha "  
let num: number = 123

// 数组
let arr1: number[] = [123,2,3,4] // 定义number类型的数组
let arr2: Array<number> = [1,2,3] // 定义number类型的数组的两种形式
let arr3: Array<number | string | object> = [1, 2,3, '4', {name:'1'}] //定义两种类型的数组
let arr4: object[] = [{name: 2}, {name:3 }]

// 元组
let tuple: [number,string, object] = [1, '222', {name: 'cc'}]  

// 函数
// let add = (x:number,y: any) => x + y
// let add = (x:number,y: any): number => x + y

// 对象

let obj: { x:any, y: string } = {x: 1, y: ""}



console.log(hello);


document.querySelectorAll('.type-script')[0].innerHTML = hello